<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title><lang>DoYouHaoBaby示例：多语言</lang></title>
<link rel='stylesheet' type='text/css' href='{:__PUBLIC__}/Css/common.css'>
{script}
var __DYHB_JS_LANG_ENTER__ = '{:__APP__}';
{/script}
<import file="Js.Dyhb#package" />
{script}
Dyhb.Lang.SetCurrentLang( '{:LANG_NAME}' );
var jsLang = D.L( '我是Javascript语言包，我可以在外部Javascript 中使用，语言数据通过Ajax保存在PHP 中！' );
{/script}
 </head>
 <body>
 <div class="main">
 <h2><lang>DoYouHaoBaby示例之：多语言支持</lang></h2>
<div class="title"><lang>给项目定义了三个语言包：简体中文、繁体中文和英文。</lang></div><br/>
 <div class="result">
{script}
document.write( jsLang );
{/script}
<br/>
{$sLang}
</div>
<lang>切换到</lang>：<a href="?l=zh-cn"><lang>简体中文</lang></a> | <a href="?l=zh-tw"><lang>繁体中文</lang></a> | <a href="?l=en-us"><lang>英文</lang></a>
 <div class="line"></div>
 <div class="title"><lang>示例源码</lang></div><br/>
 <div class="li_title"><lang>配置文件</lang>Config.php</div><br/>
 <div class="code"><php>highlight_file( APP_PATH.'/App/Config/Config.php')</php></div>
 <div class="li_title"><lang>控制器IndexControl类</lang></div><br/>
 <div class="code"><php>highlight_file( APP_PATH.'/App/Class/Controller/IndexController.class.php')</php></div>
</div>
 </body>
</html>